<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
int i = 0;
%>
<div id="header">
<div id="header-content" class="clear">
<div id="header-left" class="header-wrapper">
<a href="webindex.do">首页</a><b>|</b>
<a href="webcarts.do?isM=1&userid=${sessionScope.userid}">我的购物车</a><b>|</b>
<a href="weborders.do?isM=1&userid=${sessionScope.userid}">订单中心</a>
</div>
<div id="header-right" class="header-wrapper">
<%
Object obj = session.getAttribute("account");
if(obj == null){
%>
<a href="weblogin.do">登录</a><b>|</b>
<a href="webregist.do">注册</a>
<%}else{%>
<a href="#">欢迎您:${sessionScope.account}</a><b>|</b>
<a href="#" class="logout">注销</a><b>|</b>
<a href="modifypass.do?userid=${sessionScope.userid}&isM=1">修改密码</a>
<script type="text/javascript">
    $(".logout").click(function(){
       if(QC.Login.check()){
           QC.Login.signOut();
       }
       location.href="MLogout.do?userid=${sessionScope.userid}&isM=1";
    })
</script>
<%}%>
</div>
</div>
</div>


